package com.donglan.pethome.user.mapper;

import com.donglan.pethome.basic.mapper.BaseMapper;
import com.donglan.pethome.user.domain.User;

import java.util.Map;

/**
 * @Author: zhangdonghui
 * @Date: 2022/1/14 16:41
 */
public interface UserMapper extends BaseMapper<User> {

    /*
     * 功能描述 通过手机号码查询用户对象
     * @author zhangdonghui
     * @date 2022/1/14 16:50
     * @param phone 手机号码
     * @return com.donglan.pethome.user.domain.User
     */
    User loadByPhone(String phone);

    /*
     * 功能描述 通过用户名查询用户对象
     * @author zhangdonghui
     * @date 2022/1/20 13:51
     * @param map 用户名/邮箱/电话，和state
     * @return com.donglan.pethome.user.domain.User
     */
    User loadByUsernameOrEmailOrPhone(Map<String,Object> map);
}
